#include <iostream>
using namespace std;

int main()
{
    int i, j, k, sum = 0;
    for (i = 0; i < 100; i++)
        for (j = 0; j < 50; j++)
            for (k = 0; k < 20; k++)
            {
                if (i + 2 * j + k * 5 == 10)
                {
                    cout << i << " " << j << " " << k << endl;
                    sum = sum + 1;
                }
            }
    cout << "共有：" << sum << "种" << endl;

    return 0;
}